package com.lizard.schedule.net.http.request.bean.ScheduleSync;

/**
 * ScheduleSyncRequest和ScheduleSyncResponse里的list子项
 */
public class ScheduleSyncItem {

    /**
     * 操作类型：新增
     */
    public final static int OPER_TYPE_ADD = 1;

    /**
     * 操作类型：修改
     */
    public final static int OPER_TYPE_MODIFY = 2;

    /**
     * 操作类型：删除
     */
    public final static int OPER_TYPE_DELETE = 3;

    /**
     * 计划状态：初始(未完成)
     */
    public final static String PLAN_STATUS_UNFINISHED = "I";

    /**
     * 计划状态：结束（已完成）
     */
    public final static String PLAN_STATUS_FINISHED = "F";

    /**
     * 是否删除：是
     */
    public final static String IS_DELETED_YES = "Y";

    /**
     * 是否删除：否
     */
    public final static String IS_DELETED_NO = "N";

    /**
     * 重复：无
     */
    public final static int REPEAT_NONE = 0x00;

    /**
     * 重复：每周日
     */
    public final static int REPEAT_SUNDAY = 0x01;

    /**
     * 重复：每周一
     */
    public final static int REPEAT_MONDAY = 0x02;

    /**
     * 重复：每周二
     */
    public final static int REPEAT_TUESDAY = 0x04;

    /**
     * 重复：每周三
     */
    public final static int REPEAT_WEDNESDAY = 0x08;

    /**
     * 重复：每周四
     */
    public final static int REPEAT_THURSDAY = 0x10;

    /**
     * 重复：每周五
     */
    public final static int REPEAT_FRIDAY = 0x20;

    /**
     * 重复：每周六
     */
    public final static int REPEAT_SATURDAY = 0x40;

    /**
     * server中的schedule id
     */
    private long planId;

    /**
     * 本地的schedule id
     */
    private int localId;

    /**
     * 操作类型：1.新增、2.修改、3.删除
     */
    private int operType;

    /**
     * 计划的时间点，格式为yyyy-MM-dd hh:mm
     */
    private String planTime;

    /**
     * 计划详情
     */
    private String planInfo;

    /**
     * 计划状态：I.初始、F.结束
     */
    private String planStatus;

    /**
     * 是否删除
     */
    private String isDeleted;

    /**
     * 重复
     */
    private int repeat;

    public long getPlanId() {
        return planId;
    }

    public int getLocalId() {
        return localId;
    }

    public void setLocalId(int localId) {
        this.localId = localId;
    }

    public void setPlanId(long planId) {
        this.planId = planId;
    }

    public int getOperType() {
        return operType;
    }

    public void setOperType(int operType) {
        this.operType = operType;
    }

    public String getPlanTime() {
        return planTime;
    }

    public void setPlanTime(String planTime) {
        this.planTime = planTime;
    }

    public String getPlanInfo() {
        return planInfo;
    }

    public void setPlanInfo(String planInfo) {
        this.planInfo = planInfo;
    }

    public String getPlanStatus() {
        return planStatus;
    }

    public void setPlanStatus(String planStatus) {
        this.planStatus = planStatus;
    }

    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public int getRepeat() {
        return repeat;
    }

    public void setRepeat(int repeat) {
        this.repeat = repeat;
    }

}
